home *** CD-ROM | disk | FTP | other *** search
- Path: news.hv.se!usenet
- From: hwefri92@tufvan.hv.se (Henrik Wetterstrom)
- Newsgroups: comp.sys.amiga.programmer
- Subject: SetIntVector() problem
- Date: 27 Jan 1996 23:32:32 GMT
- Organization: VΣxj÷ university
- Message-ID: <4eecmg$hn3@eken.hv.se>
- Reply-To: hwefri92@tufvan.hv.se
- NNTP-Posting-Host: hugin.hv.se
-
- I have been reading through the RKRM loads of times now
- and been staring at these few lines of assembler code
- for hors. I think it should do what RKRM tellms me to
- do, but still it locks up the whole system during the
- SetIntVector() exec.library call. It never reaches
- the label 'hang' and the interrupt is never started.
- What did I do wrong? I am dying for your help.
- I would appreciate a emailed answer (or maybe rather
- a Cc: carboncopy of your reply) since I do not trust
- me news server to bring me all answers.
- Here's the buggy code:
-
- run move.l 4,a6
- move.l #INTB_VERTB,d0
- lea int,a1
- jsr _LVOSetIntVector(a6)
- move.l d0,oldint
-
- hang bra.b hang
-
- icode move.w #INTF_VERTB,intreq(a0) ; Clear IRQ
- rts
-
- int dc.l 0 ;ln_Succ
- dc.l 0 ;ln_Pred
- dc.b NT_INTERRUPT ;ln_Type
- dc.b 0 ;ln_Pri
- dc.l irqname ;ln_Name
- dc.l idata ;is_Data
- dc.l icode ;is_Code
-
- idata dcb.l 10 ;dummy storage
- oldint dc.l 0
- irqname dc.b "vbint",0
-
-
- /Henrik Wtterstrom (hwefri92@tufvan.hv.se)
-
-
-